#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
#include<map>
using namespace std;
string s,t;
map<string, string> mp;

void init()
{
	mp["q"] = "q"; mp["iu"] = "q";
	mp["w"] = "w"; mp["ei"] = "w";
	mp["e"] = "e";
	mp["r"] = "r"; mp["uan"] = "r";
	mp["t"] = "t"; mp["ue"] = "t";
	mp["y"] = "y"; mp["un"] = "y";
	mp["u"] = "u"; mp["sh"] = "u";
	mp["i"] = "i"; mp["ch"] = "i";
	mp["o"] = "o"; mp["uo"] = "o";
	mp["p"] = "p"; mp["ie"] = "p";
	mp["a"] = "a";
	mp["s"] = "s"; mp["ong"] = "s"; mp["iong"] = "s";
	mp["d"] = "d"; mp["ai"] = "d";
	mp["f"] = "f"; mp["en"] = "f";
	mp["g"] = "g"; mp["eng"] = "g";
	mp["h"] = "h"; mp["ang"] = "h";
	mp["j"] = "j"; mp["an"] = "j";
	mp["k"] = "k"; mp["uai"] = "k"; mp["ing"] = "k";
	mp["l"] = "l"; mp["uang"] = "l"; mp["iang"] = "l";
	mp["z"] = "z"; mp["ou"] = "z";
	mp["x"] = "x"; mp["ia"] = "x"; mp["ua"] = "x";
	mp["c"] = "c"; mp["ao"] = "c";
	mp["v"] = "v"; mp["zh"] = "v"; mp["ui"] = "v";
	mp["b"] = "b"; mp["in"] = "b";
	mp["n"] = "n"; mp["iao"] = "n";
	mp["m"] = "m"; mp["ian"] = "m";
}

int main()
{
	init();
	while (getline(cin, s))
	{
		int n = s.size();
		for (int i = 0; i < n; i++)
		{
			if (s[i] != ' ') t += s[i];
			if (s[i] == ' ' || i == n - 1)
			{
				if (t.size() == 1) cout << mp[t] << mp[t];
				else if (t.size() == 2) cout << t;
				else if (t == "ang" || t == "eng" || t == "ing" || t == "ong")
					cout << t[0] << mp[t];
				else if (t[0] == 'z' && t[1] == 'h')
					cout << mp["zh"] << mp[t.substr(2, t.size() - 2)];
				else if (t[0] == 'c' && t[1] == 'h')
					cout << mp["ch"] << mp[t.substr(2, t.size() - 2)];
				else if (t[0] == 's' && t[1] == 'h')
					cout << mp["sh"] << mp[t.substr(2, t.size() - 2)];
				else
					cout << t[0] << mp[t.substr(1, t.size() - 1)];
				if (i != n - 1) cout << " ";
				else cout << endl;
				t.clear();
			}
		}
	}
	return 0;
}
